package com.sxbbc.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxbbc.api.service.ISystemService;
import com.sxbbc.common.core.entity.jz.SysNews;
import com.sxbbc.common.core.service.ISysNewsService;
import com.sxbbc.common.core.utils.BasePage;

/**
 * 平台信息实现类
 * @author YQQ
 *
 */
@Service
public class SystemServiceImpl implements ISystemService{
	@Autowired
	private ISysNewsService sysNewsService;
 
	@Override
	public Page<SysNews> querySysNewsList(Long currentPage) {
		BasePage<SysNews> page=new BasePage<SysNews>();
		page.setCurrent(currentPage);
		return sysNewsService.querySysNewsList(page);
	}

	@Override
	public SysNews getSysNewsById(Integer id) {
		return sysNewsService.getById(id);
	}

}
